﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var yesnoData = Jxstar.findComboData('yesno');

	var cols = [
	{col:{header:'*主材名称', width:157, sortable:true, editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.TextField({
			maxLength:50, allowBlank:false
		})}, field:{name:'quality_incheck_det__mat_name',type:'string'}},
	{col:{header:'型号规格', width:151, sortable:true, editable:true, hcss:'color:#3039b4;',
		editor:new Ext.form.TextField({
			maxLength:50
		})}, field:{name:'quality_incheck_det__mat_size',type:'string'}},
	{col:{header:'生产厂家', width:100, sortable:true, editable:true, hcss:'color:#3039b4;',
		editor:new Ext.form.TextField({
			maxLength:50
		})}, field:{name:'quality_incheck_det__factory',type:'string'}},
	{col:{header:'*检测数量', width:100, sortable:true, defaultval:'1', align:'right',
		editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.NumberField({
			decimalPrecision:2, maxLength:12, allowBlank:false
		}),renderer:JxUtil.formatNumber(2)}, field:{name:'quality_incheck_det__check_num',type:'float'}},
	{col:{header:'*是否合格', width:100, sortable:true, defaultval:'1', align:'center',
		editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: yesnoData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false, allowBlank:false,
			value: yesnoData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < yesnoData.length; i++) {
				if (yesnoData[i][0] == value)
					return yesnoData[i][1];
			}
		}}, field:{name:'quality_incheck_det__result',type:'string'}},
	{col:{header:'物资ID', width:100, sortable:true, hidden:true}, field:{name:'quality_incheck_det__mat_id',type:'string'}},
	{col:{header:'主表ID', width:100, sortable:true, hidden:true}, field:{name:'quality_incheck_det__incheck_id',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'quality_incheck_det__incheck_det_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '1',
		isshow: '0',
		funid: 'quality_incheck_det'
	};
	
	
		
	return new Jxstar.GridNode(config);
}